/*
 * @Author: 凌宇king
 * @Date: 2022-09-06 09:55:53
 * @LastEditTime: 2022-09-06 10:39:14
 */
const mongoose = require('mongoose')
//连接数据库 
mongoose.connect('mongodb://localhost:27017/schoolRun')
    .then(res => { console.log('数据库连接成功') })
    .catch(err => { console.log('数据库连接失败') })

